package com.zxl.grocery.modular.crawler.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 配置参数表
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
@TableName("crawler_config")
public class CrawlerConfig extends Model<CrawlerConfig> {

    private static final long serialVersionUID = 6270335197390736007L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 代码
     */
    private String code;
    /**
     * 描述
     */
    private String info;
    /**
     * 内容
     */
    private String content;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 定时任务id
     */
    @TableField("jod_id")
    private Long jodId;
    /**
     * 来源Id
     */
    @TableField("source_id")
    private Integer sourceId;
    @TableField("create_date")
    private Date createDate;
    @TableField("modify_date")
    private Date modifyDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getJodId() {
        return jodId;
    }

    public void setJodId(Long jodId) {
        this.jodId = jodId;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerConfig{" +
                "id=" + id +
                ", code=" + code +
                ", info=" + info +
                ", content=" + content +
                ", status=" + status +
                ", jodId=" + jodId +
                ", sourceId=" + sourceId +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                "}";
    }
}
